package com.db.concurrency.vehicles;

/**
 * ImmutablePoint
 * <p/>
 * Immutable Point class
 * 
 * @author Anton Kotov
 */

public class ImmutablePoint {
  private int x, y;

  public ImmutablePoint() {
    x = 0;
    y = 0;
  }

  public ImmutablePoint(ImmutablePoint p) {
    this(p.x, p.y);
  }

  public ImmutablePoint(int x, int y) {
    this.x = x;
    this.y = y;
  }

  public int getX() {
    return x;
  }

  public int getY() {
    return y;
  }
  
}
